﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WeberMadeiras.WebForm2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server" ID="ScriptManager" EnableScriptGlobalization="True"
        EnablePageMethods="true">
        <Scripts>
            <%--Framework Scripts--%>
            <asp:ScriptReference Name="MsAjaxBundle" />
             <%--Framework Scripts
            <asp:ScriptReference Name="jquery" />
            <asp:ScriptReference Name="jquery.ui.combined" />
            --%>
            <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
            <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
            <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
            <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
            <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
            <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
            <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
            <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
            <asp:ScriptReference Name="WebFormsBundle" />
            <%--Site Scripts--%>

        </Scripts>
    </asp:ScriptManager>
    <div>
    <asp:UpdatePanel ID="up1" runat="server" ChildrenAsTriggers="True" UpdateMode="Always">
        <ContentTemplate>

            <table class="inscricao" border="0" align="center" width="94%">
                <tr>
                    <td class="auto-style2">Fale Conosco
                    </td>



                </tr>
                <tr>

                    <td class="auto-style2">Nome Completo: </td>
                    <td align="left" class="auto-style3">
                        <asp:TextBox ID="txtNome" runat="server" Width="300px" AutoPostBack="true"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator Display="Dynamic" ID="rfvNome" runat="server" ControlToValidate="txtNome" ErrorMessage="Campo Obrigatório*" ValidationGroup="v1" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>

                    <td class="auto-style2">E-mail: </td>
                    <td align="left" class="auto-style3">
                        <asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail" ErrorMessage="Campo Obrigatório*" ValidationGroup="v1" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>

                    <td class="auto-style2">Telefone De Contato: </td>
                    <td align="left" class="auto-style3">
                        <asp:TextBox ID="txtTelefone" runat="server" Width="300px"></asp:TextBox>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>

                    <td class="auto-style2">Assunto: </td>
                    <td align="left" class="auto-style3">
                  
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="rfvAssunto" runat="server" ControlToValidate="ddlAssunto" ErrorMessage="Campo Obrigatório*" ValidationGroup="v1" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>

                    <td class="auto-style2" valign="top">Mensagem: </td>
                    <td align="left" class="auto-style3">
                        <asp:TextBox ID="txtMensagem" TextMode="MultiLine" runat="server" Width="300px" Rows="5"></asp:TextBox>
                    </td>
                    <td valign="top" style="padding-top: 10px">
                        <asp:RequiredFieldValidator ID="rfvMensagem" runat="server" ControlToValidate="txtMensagem" ErrorMessage="Campo Obrigatório*" ValidationGroup="v1" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td colspan="3" class="titulo">
                        <asp:Button ID="btnEnviar" runat="server" Text="Enviar" OnClick="btnEnviar_Click" ValidationGroup="v1" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID ="ddlAssunto"/>

        </Triggers>

    </asp:UpdatePanel>
          <asp:DropDownList ID="ddlAssunto" runat="server" Width="300px" AutoPostBack="True" OnSelectedIndexChanged="ddlAssunto_SelectedIndexChanged">
                            <asp:ListItem Value="" Text="Selecione" />
                            <asp:ListItem Value="Sugestao" Text="Sugestão" />
                            <asp:ListItem Value="Reclamacao" Text="Reclamação" />
                            <asp:ListItem Value="Duvida" Text="Dúvida" />
                            <asp:ListItem Value="Depoimento" Text="Depoimento" />
                        </asp:DropDownList>
    </div>
    </form>
</body>
</html>
